// 安卓/IOS
export const isAndroid = () => {
    let u = navigator.userAgent,
        app = navigator.appVersion;
    let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器
    let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
    return isAndroid
}
// 移动端浏览器内核
export const getAppEnv = function () {
    let ua = navigator.userAgent.toLowerCase()
    if (ua.match(/MicroMessenger/i) == 'micromessenger') return 'weixin'
    if (ua.match(/WeiBo/i) == 'weibo') return 'weibo'
    if (ua.match(/QQ/i) == 'qq') return 'qq'
}
